E:/E+I/Informatik/Projekte/FH/n-Damen Problem/main.c File Reference

#include "ndame.h"

Go to the source code of this file.

Functions

int main ()
 main


Detailed Description

PURPOSE: file contains main function

Author:
Daniel Hasemann
Version:
1.0
Date:
December 16th, 2005

Definition in file main.c.


Function Documentation

int main  ) 
 

main

This function sets standart default values and calls box, state and menu. By calling state(d1,0) default state will be loaded.

Returns:
0
Author:
Daniel Hasemann
Date:
December 16th, 2005

Definition at line 20 of file main.c.

References automatic, box(), data::cfilename, data::fcalctime, data::iauthor, data::iblength, data::isave, data::isolutions, data::istep, data::m1, menu(), and state().

00021 {
00022     int imenu;                                        
00023     struct data d1;
00024                                                       //default values
00025     d1.m1=automatic; 
00026     d1.iblength=8;
00027     d1.isolutions=0;
00028     d1.istep=0;
00029     d1.isave=0;
00030     d1.iauthor=0;
00031     d1.fcalctime=0;
00032     sprintf(d1.cfilename,"%s","C:\\ndame.txt");
00033     
00034     box();      
00035     state(&d1,0); 
00036     do                                                //menue is looped
00037     {
00038         imenu=menu(&d1);
00039     }while(imenu);
00040     
00041     clrscr();
00042     return 0;
00043 }


Generated on Sun Dec 18 19:26:14 2005 for n-Queens Problem by  doxygen 1.4.5